package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.product.ProductIdentifyProductsEnableRequest;
import com.mes.cloud.api.dto.request.product.ProductIdentifyProductsPageRequest;
import com.mes.cloud.entity.ProductIdentifyProducts;
import com.mes.cloud.entity.vo.product.ProductIdentifyProductsPageVo;
import feign.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 产品标识产品
 *
 * @author xy
 * @version 2019-08-23 15:24:04
 * @email yuan.xue3@pactera.com
 */
public interface ProductIdentifyProductsDao extends SelectByIdsMapper<ProductIdentifyProducts>, Mapper<ProductIdentifyProducts> {
    /**
     * <批量插入>
     *
     * @param addList
     * @return int
     * @author xy
     * @date 2019/8/23 13:46
     */
    int batchInsert(List<ProductIdentifyProducts> addList);

    /**
     * <分页查询>
     *
     * @param pageRequest
     * @return List<ProductIdentifyProductsPageVo>
     * @author xy
     * @date 2019/8/23 13:52
     */
    List<ProductIdentifyProductsPageVo> pageList(ProductIdentifyProductsPageRequest pageRequest);

    /**
     * <批量禁用>
     *
     * @param productProductCombineEnableRequest
     * @return int
     * @author xy
     * @date 2019/8/23 15:28
     */
    int batchUpdateEnable(ProductIdentifyProductsEnableRequest productProductCombineEnableRequest);

    /**
     * @Author ysd
     * @Description 查询详情
     * @Date 15:04 2019/10/28
     **/
    ProductIdentifyProducts findDetails(ProductIdentifyProducts productIdentifyProducts);

    /**
     * @Author ysd
     * @Description 批量更新
     * @Date 15:22 2019/10/28
     **/
    int batchUpdate(@Param("list") List<String> list);
}
